﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="QunYing.Web.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
     <title>水族生态环境智能报警平台</title>
    <link href="style/login.css" rel="stylesheet" type="text/css" />

    <script src="js/jquery-1.6.4.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function() {
            $("#alter").hide();
            //IE6
            if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style) {
                $("#alter").show();
            }
            //IE7
            if ($.browser.msie && ($.browser.version == "7.0")) {
                $("#alter").show();
            }
        });
        function verify() {
            var userName = $.trim($("#txtUserName").val());
            var userPwd = $.trim($("#txtUserPwd").val());
            if (userName.length == 0) {
                alert("请输入用户名!");
                $("#txtUserPwd").val("");
                $("#txtUserName").focus();
                return false;
            }
            if (userPwd.length == 0) {
                alert("请输入密码!");
                $("#txtUserPwd").focus();
                return false;
            }
            return true;
        }
        function cancel() {
            $("#txtUserName").val("");
            $("#txtUserPwd").val("");
            $("#txtUserName").focus();
            return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="login">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                <asp:TextBox ID="txtUserPwd" runat="server" TextMode="Password"></asp:TextBox>
                <asp:LinkButton ID="btnForget" runat="server" Font-Size="12pt" 
                    Font-Underline="False" ForeColor="#0066FF" onclick="btnForget_Click">忘记密码?</asp:LinkButton>
                <asp:Button ID="btnLogin" runat="server" OnClick="btnLogin_Click" OnClientClick="return verify();" />
                <asp:Button ID="btnCancel" runat="server" OnClientClick="return cancel();" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div id="foot">
        版权所有 Copuright © 2011睿美水族
        <div id="alter" style="margin-top:20px;color: red;">为达到最佳显示效果，请使用<a target="_blank" style="color:Lime; text-decoration:underline;" href="http://info.msn.com.cn/ie8/">IE8</a>及以上浏览器！</div>
    </div>
    </form>
</body>
</html>